    class Box
   {
      double length;
      double width;
      double height;
   
       public Box (double length, double width, double height)
      {
         this.length=length;
         this.width=width;
         this.height=height;
      }
   
       public double getVolume()
      {
         return (length * width * height);
      }
   
       public double getSAOpen()//for an open box
      {
         return ((length*width)+(2*width*height)+(2*length*height));
      }
   
       public double getSAClosed()//for a closed box
      {
         return ((2*length*width)+(2*width*height)+(2*length*height));
      }

   }
